package cn.xinfei.xdecision.model;

import cn.xinfei.xdecision.data.model.IVariableResponse;
import lombok.Data;

import java.util.Map;

@Data
public class PythonVarResponse implements IVariableResponse {

    private String requestId;
    private Object data;
    /**
     * 返回信息
     */
    private String message = "成功";
    /**
     * 返回code
     */
    private String code = "10000";

    @Override
    public String requestId() {
        return requestId;
    }

    @Override
    public Map<String, Object> executorResultMap() {
        return (Map<String, Object>) data;
    }
}
